package eu.silentspycamera.adabters;

import android.util.Log;

import com.admob.android.ads.AdView;
import com.admob.android.ads.SimpleAdListener;

public class AdListener extends SimpleAdListener {

	/*
	 * LOGGING
	 */
	private String TAG = "SSC";

	@Override
    public void onFailedToReceiveAd ( AdView adView ) {
      // this is what logs
        Log.d ( TAG, "failed to receive ad" );
        super.onFailedToReceiveAd ( adView );
    }

    @Override
    public void onFailedToReceiveRefreshedAd ( AdView adView ) {
        Log.d ( TAG, "failed to receive refreshed ad" );
        super.onFailedToReceiveRefreshedAd ( adView );
    }

    @Override
    public void onReceiveAd ( AdView adView ) {
    	Log.d ( TAG, "receive ad" );
    	 adView.setAdListener(null);
        super.onReceiveAd ( adView );
    }

    @Override
    public void onReceiveRefreshedAd ( AdView adView ) {
        Log.d ( TAG, "receive refreshed ad" );
        super.onReceiveRefreshedAd ( adView );
    }
}